package com.Home.Dao;

import com.Home.bean.GoodsBean;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsDao extends CrudRepository<GoodsBean, Integer>{

    @Query(value="SELECT * FROM goods",nativeQuery=true)
    @Modifying
    List<GoodsBean> findAllImg();
}
